package com.jhw.ymcc.dto;

import com.jhw.ymcc.domain.Course;
import com.jhw.ymcc.domain.CourseDetail;
import com.jhw.ymcc.domain.CourseMarket;
import com.jhw.ymcc.domain.CourseResource;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @author jhw
 * @create 2022/10/9
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CourseAddDto {
    @Valid
    private Course course;

    @Valid
    private CourseDetail courseDetail;

    @Valid
    private CourseMarket courseMarket;

    @Valid
    private CourseResource courseResource;

    @NotEmpty// 集合才用
    private List<Long> teacharIds;
}
